<?php if(!defined('ROOT_PATH')) exit('Access Denied');?><div class="box">
<div class="box-title">
<h3>日志列表</h3>
<span></span>
</div>
<div class="box-content">
<p class="operate">操作: 
<a href="" onclick="ajaxLoad('/admin.php/Admin_Logs/del');return ture;">删除全部日志[系统自动保存近7天的日志]</a>
</p>
<table class="list-table" id="list-tag">
<colgroup>
<col width="25">
<col width="100">
<col width="375">
                <col width="150">
<col width="80">
<col width="150">
</colgroup>
<thead>
<tr>
<th class="radius-topleft"> </th>
<th>ID</th>
<th>操作内容</th>
                    <th>操作时间</th>
<th>管理员</th>
<th class="radius-topright">管理IP</th>
</tr>
</thead>
<tbody>

                <?php if(is_array($logdata)) foreach($logdata AS $vlaue) { ?> 
                <tr  id="tag-<?php echo $vlaue["id"];?>">
<td></td>
                <td><?php echo $vlaue["id"];?></td>
<td><?php echo $vlaue["logcontent"];?></td>
<td><?php echo $vlaue["logtime"];?></td>
                <td><?php echo $vlaue["logoname"];?></td>
<td><?php echo $vlaue["logip"];?></td>

</tr>
<?php } ?>

</tbody>
</table>
        <div class="nav">
<div class="nav-content">
<ul>
<?php if(is_array($page['all_pages'])) foreach($page['all_pages'] AS $vlaue) { ?>
<?php if($page['current_page'] == $vlaue) { ?>
<li class="current">
 <a onclick="ajaxLoad('/admin.php/Admin_Logs/main/p/<?php echo $vlaue;?>');return false;" href="#"><?php echo $vlaue;?></a>
 </li>
<?php } else { ?>
<li>
<a onclick="ajaxLoad('/admin.php/Admin_Logs/main/p/<?php echo $vlaue;?>');return false;" href="#"><?php echo $vlaue;?></a>
</li>
 <?php } ?> 
<?php } ?>


</ul>
</div>
</div>
</div>
</div>
<script>
function pluginInstall( plugin ) {
$.post(
'/index.php/admin/pluginInstall/',
{'plugin':plugin},
function(response){
if(response.success){
$('#h_Plugin').click();
} else {
showMessage(response.message,'error');
}
},
"json"
);
}
function pluginRemove( plugin ) {
$.post(
'/index.php/admin/pluginRemove/',
{'plugin':plugin},
function(response){
if(response.success){
$('#h_Plugin').click();
} else {
showMessage(response.message,'error');
}
},
"json"
);
}
function pluginSetting( plugin ) {
$.post(
'/index.php/admin/pluginSetting/',
{'plugin':plugin},
function(response){
if(response.success){
art.dialog({
content:response.message,
fixed:true,
title:plugin+' 设置',
width:800,
id:'pluginSetting'+plugin
});
} else {
showMessage(response.message,'error');
}
},
"json"
);
}
</script>
